package com.wjl.tableanalyzier.strategy;

import org.springframework.stereotype.Component;

import java.util.regex.Pattern;

@Component
public class DateColumnStrategy extends ColumnStrategy {

    private static final Pattern pattern = Pattern.compile("^date$");

    @Override
    public boolean match(String type) {
        return pattern.matcher(type).find();
    }

    @Override
    public int getSize(String type) {
        return 3;
    }
}
